/*
 *	OpenSource code or fragments by agile webentwicklung, Marcus Fuhrmeister
 *
 *	Redistribution and use in source and binary forms, with or without
 *	modification, are permitted provided that the following conditions
 *	are met:
 *  
 *		* Redistribution of source code must retain the above OpenSource comment,
 *		this list of conditions and the following disclaimer.
 * 
 *		* Redistribution in binary form must reproduce the above OpenSource comment,
 *		this list of conditions and the following disclaimer in the
 *		documentation and/or other materials provided with the distribution.
 * 
 *	Neither the name of 'avocado systems, Marcus Fuhrmeister' or the
 *	names of contributors may be used to endorse or promote products derived
 *	from this software without specific prior written permission.
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
 */
package de.fuhrmeister.browserchooser.model;

/**
 * Browser version model class.
 * 
 * @date 20.11.2008
 * @author		Marcus Fuhrmeister
 */
public class BrowserVersionModel implements java.io.Serializable {

	private static final long serialVersionUID = 1710307845085616402L;
	private boolean active;
	private String version;
	private String exec;
	private int ID;

	/**
	 * Indicates if the browser version is active.
	 * 
	 * @return true if the browser version is active
	 */
	public boolean isActive() {
		return active;
	}

	/**
	 * Returns the executable.
	 * 
	 * @return the executable
	 */
	public String getExec() {
		return exec;
	}

	/**
	 * Returns the version.
	 * 
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * Returns the id.
	 * 
	 * @return the id
	 */
	public int getID() {
		return ID;
	}

	/**
	 * Sets the version active.
	 * 
	 * @param active to activate or deactivate the browser version
	 */
	public void setActive(final boolean active) {
		this.active = active;
	}

	/**
	 * Sets the executable.
	 * 
	 * @param exec the executable of the browser version
	 */
	public void setExec(final String exec) {
		this.exec = exec;
	}

	/**
	 * Sets the version.
	 * 
	 * @param version the version of the browser version
	 */
	public void setVersion(final String version) {
		this.version = version;
	}

	/**
	 * Sets the id.
	 * 
	 * @param ID the id of the browser version
	 */
	public void setID(final int ID) {
		this.ID = ID;
	}
}
